import request from '../utils/request'
import { get, post } from '@/apis/base'

export function getPay(params) {
    return request({
        url: 'v1/pay/get-pay-serve',
        method: 'get',
        params
    })
}
export function get19citylist(params) {
    return request({
        url: 'v1/accessor/get-qualify-city',
        method: 'get',
        params
    })
}
export function agenton(data) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/agent/apply',
        method: 'post',
        data
    })
}
export function getqualify(params) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/accessor/get-qualify',
        method: 'get',
        params
    })
}
export function getNewslist(params) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/accessor/get-news-list',
        method: 'get',
        params
    })
}
export function getNewsdetail(params) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/accessor/get-news-detail',
        method: 'get',
        params
    })
}
export function createPayorder(data) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/pay/generate-serve-order',
        method: 'post',
        data
    })
}
export function paySign(data) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/pay/wx-signatures',
        method: 'post',
        data
    })
}
export function createService(data) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/pay/generate-order',
        method: 'post',
        data
    })
}
export function agentGrab(data) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/agent/grab',
        method: 'post',
        data
    })
}
export function buyTakelook(data) {
    return request({
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        url: 'v1/user/generate-second-hand-house-take-look',
        method: 'post',
        data
    })
}
export function ranterImpay(params) {
    return post('v3/im/consumer-landlord', params)
}
export function buyImpay(params) {
    return post('v3/im/consume-owner-contact', params)
}
export function getNews(params) {
    return get('v1/accessor/get-news-list', params)
}
export function ConsumerTakeLook(params) {
    return post('/v1/im/consumer-take-look-service', params)
}